import { Column, Model, Table } from "sequelize-typescript";
import { IMessage } from "../IMessage";

@Table
export class Message extends Model<IMessage> {
    @Column({
        primaryKey: true,
    })
    _id: string;

    @Column
    convID: string;

    @Column
    userID: string;

    @Column
    type: "user" | "ai";

    @Column
    content: string;

    @Column
    contentType: string;

    @Column
    createdAt: Date;
}